<?php
$find=$_REQUEST['string'];


if($find!="")
{
require("include/connect.php"); 
$sql="select ProductName from product where ProductName like '$find%' limit 8;";
$res=mysqli_query($con,$sql);
$i=0;
while($row=mysqli_fetch_array($res))
{
$name[$i]=$row['ProductName'];
$i++;

}
print(json_encode($name));
}


?>